package com.itzhoun;

/**
 * @author 周楠
 * @Date 2023/01/28/下午 12:31
 */
public class User implements Observer{

    private String name;
    private String message;

    public User(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        this.message = message;
        System.out.println(name + " 收到推送消息： " + message);
    }
}
